package com.minhnvt1.dashboard;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class FbDashboardActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        
        Button btnNewsfeed = (Button) findViewById(R.id.btn_news_feed);
        
        Button btnFriends = (Button) findViewById(R.id.btn_friends);
        
        Button btnMessages = (Button) findViewById(R.id.btn_messages);
        
        Button btnPlaces = (Button) findViewById(R.id.btn_places);
        
        Button btnEvents = (Button) findViewById(R.id.btn_events);
        
        Button btnPhotos = (Button) findViewById(R.id.btn_photos);
        
        btnNewsfeed.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(), NewsFeedActivity.class);
				startActivity(i);
			}
		});
        btnFriends.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(), FriendsActivity.class);
				startActivity(i);
			}
		});
        btnMessages.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(), MessagesActivity.class);
				startActivity(i);
			}
		});
        btnPlaces.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(), PlacesActivity.class);
				startActivity(i);
			}
		});
		btnEvents.setOnClickListener(new View.OnClickListener() {
					
					@Override
					public void onClick(View v) {
						Intent i = new Intent(getApplicationContext(), EventsActivity.class);
						startActivity(i);
					}
				});
		btnPhotos.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(), PhotosActivity.class);
				startActivity(i);
			}
		});
        
    }
}